import { HttpRequest } from '@angular/common/http';
import { MockRequest } from '@delon/mock';

function sysDic(params: any) {
  let re = {
    "total" : 2,
    "list" : [ {
      "id" : "40288a416975d121016975f4b6340001",
      "code" : "timeType",
      "name" : "时间类型"
    }, {
      "id" : "40288a416979e6ed016979eda8770000",
      "code" : "userType",
      "name" : "用户类型"
    } ]
  }
  return re;
}

export const SYSDATA = {
  '/api/sysDic': (req: MockRequest) => sysDic(req.queryString),
  '/api/sysDicItem': {
    "total" : 2,
    "list" : [ {
      "id" : "40288a416975d121016975f4b6340001",
      "code" : "timeType",
      "name" : "时间类型"
    }, {
      "id" : "40288a416979e6ed016979eda8770000",
      "code" : "userType",
      "name" : "用户类型"
    } ]
  }
};